package main.java.game.command;

import main.java.game.Game;
import main.java.game.item.sorcery.Sorcery;

public class BuySorcery implements PlayerCommand {
	
	private Game game;
	private Sorcery sorcery;
	
	public BuySorcery (Game game, Sorcery sorcery){
		this.game = game;
		this.sorcery = sorcery;
		
	}

	@Override
	public void execute() {
		game.getPlayer().getSorceries().add(sorcery);
		game.getSorceries().remove(sorcery);

	}

}
